Properties for a window. More...
#include <kanzi/core.ui/platform/windowing/common/window_properties.hpp>
Public Types | |
enum | WindowPositionSpecifiers { WindowPositionUnspecified } |
Special values for NativeWindowProperties::x, NativeWindowProperties::y and NativeWindowProperties::order. More... | |
enum | WindowSizeSpecifiers { WindowSizeUnspecified, WindowSizeFullscreen } |
Special values for NativeWindowProperties::width and NativeWindowProperties::height. More... | |
Public Member Functions | |
NativeWindowProperties () | |
Constructor. More... | |
void | log () const |
Outputs the window properties to the log. More... | |
Public Attributes | |
kzInt | x |
X position of the window (in pixels). Use WindowPositionUnspecified to let the system choose the position. More... | |
kzInt | y |
Y position of the window (in pixels). Use WindowPositionUnspecified to let the system choose the position. More... | |
kzInt | order |
Z order of the window (target platform specific value). Use WindowPositionUnspecified to let the system choose the position. More... | |
kzUint | width |
Width of the window (in pixels). More... | |
kzUint | height |
Height of the window (in pixels). More... | |
enum KzsWindowStyle | style |
Style properties of the window. More... | |
kzUint | defaultDisplayIndex |
Index of default display for full-screen windows. More... | |
kanzi::optional< kanzi::string > | groupName |
Window group name. More... | |
Properties for a window.
Position is defined as the distance from the top-left corner of the desktop to the top-left corner of the window, measured towards the center of the desktop. If style is set to KZS_WINDOW_STYLE_FULL_SCREEN, the window position is ignored and the primary screen resolution is changed to match the requested window size. If both width and height is set to zero, no change of resolution is attempted.
Special values for NativeWindowProperties::x, NativeWindowProperties::y and NativeWindowProperties::order.
Enumerator | |
---|---|
WindowPositionUnspecified |
Lets system specify position for a window. |
Special values for NativeWindowProperties::width and NativeWindowProperties::height.
Enumerator | |
---|---|
WindowSizeUnspecified |
Lets system specify size for a window. |
WindowSizeFullscreen |
Automatically sizes the window to fill visible screen. |
|
explicit |
Constructor.
void NativeWindowProperties::log | ( | ) | const |
Outputs the window properties to the log.
kzInt NativeWindowProperties::x |
X position of the window (in pixels). Use WindowPositionUnspecified to let the system choose the position.
kzInt NativeWindowProperties::y |
Y position of the window (in pixels). Use WindowPositionUnspecified to let the system choose the position.
kzInt NativeWindowProperties::order |
Z order of the window (target platform specific value). Use WindowPositionUnspecified to let the system choose the position.
kzUint NativeWindowProperties::width |
Width of the window (in pixels).
Use WindowSizeFullscreen to use the maximum width available on the primary screen. Use WindowSizeUnspecified to let the system choose the size.
kzUint NativeWindowProperties::height |
Height of the window (in pixels).
Use WindowSizeFullscreen to use the maximum height available on the primary screen. Use WindowSizeUnspecified to let the system choose the size.
enum KzsWindowStyle NativeWindowProperties::style |
Style properties of the window.
kzUint NativeWindowProperties::defaultDisplayIndex |
Index of default display for full-screen windows.
kanzi::optional<kanzi::string> NativeWindowProperties::groupName |
Window group name.
Not all windowing systems use the group name.